-- This file tells the engine where to look for graphics.

-- invalid texture (first)
LoadGraphic("invalid", "Graphics/invalid.png")
LoadGraphic("ignored_tile", "Graphics/Game/ignored.png")

-- all the ground tiles come immediatly after invalid (CRITICALLY IMPORTANT)
-- this is due to how the engine images are saved
-- grass
LoadGraphic("grass", "Graphics/Game/Grass/grass.png")
LoadGraphic("grass_right", "Graphics/Game/Grass/grass_right.png")
LoadGraphic("grass_left", "Graphics/Game/Grass/grass_left.png")
LoadGraphic("grass_top", "Graphics/Game/Grass/grass_top.png")
LoadGraphic("grass_bottom", "Graphics/Game/Grass/grass_bottom.png")
LoadGraphic("grass_b_right", "Graphics/Game/Grass/grass_b_right.png")
LoadGraphic("grass_b_left", "Graphics/Game/Grass/grass_b_left.png")
LoadGraphic("grass_t_right", "Graphics/Game/Grass/grass_t_right.png")
LoadGraphic("grass_t_left", "Graphics/Game/Grass/grass_t_left.png")

-- dirt
LoadGraphic("dirt", "Graphics/Game/Dirt/dirt.png")
LoadGraphic("dirt_right", "Graphics/Game/Dirt/dirt_right.png")
LoadGraphic("dirt_left", "Graphics/Game/Dirt/dirt_left.png")
LoadGraphic("dirt_top", "Graphics/Game/Dirt/dirt_top.png")
LoadGraphic("dirt_bottom", "Graphics/Game/Dirt/dirt_bottom.png")
LoadGraphic("dirt_b_right", "Graphics/Game/Dirt/dirt_b_right.png")
LoadGraphic("dirt_b_left", "Graphics/Game/Dirt/dirt_b_left.png")
LoadGraphic("dirt_t_right", "Graphics/Game/Dirt/dirt_t_right.png")
LoadGraphic("dirt_t_left", "Graphics/Game/Dirt/dirt_t_left.png")

-- snow
LoadGraphic("snow", "Graphics/Game/Snow/snow.png")

-- water
LoadGraphic("water", "Graphics/Game/Water/water.png")
LoadGraphic("water_right", "Graphics/Game/Water/water_right.png")
LoadGraphic("water_left", "Graphics/Game/Water/water_left.png")
LoadGraphic("water_top", "Graphics/Game/Water/water_top.png")
LoadGraphic("water_bottom", "Graphics/Game/Water/water_bottom.png")
LoadGraphic("water_b_right", "Graphics/Game/Water/water_b_right.png")
LoadGraphic("water_b_left", "Graphics/Game/Water/water_b_left.png")
LoadGraphic("water_t_right", "Graphics/Game/Water/water_t_right.png")
LoadGraphic("water_t_left", "Graphics/Game/Water/water_t_left.png")



-- ice
LoadGraphic("ice", "Graphics/Game/Ice/ice.png")
LoadGraphic("ice_right", "Graphics/Game/Ice/ice_right.png")
LoadGraphic("ice_left", "Graphics/Game/Ice/ice_left.png")
LoadGraphic("ice_top", "Graphics/Game/Ice/ice_top.png")
LoadGraphic("ice_bottom", "Graphics/Game/Ice/ice_bottom.png")

LoadGraphic("ice_t_left", "Graphics/Game/Ice/ice_b_right.png")
LoadGraphic("ice_t_right", "Graphics/Game/Ice/ice_b_left.png")
LoadGraphic("ice_b_left", "Graphics/Game/Ice/ice_t_right.png")
LoadGraphic("ice_b_right", "Graphics/Game/Ice/ice_t_left.png")

-- add more ground textures here



-- after all ground tiles, the order doesn't matter (order matters for saving maps)
-- buttons
LoadGraphic("b_style1", "Graphics/Buttons/style1.png")
LoadGraphic("b_style1_m", "Graphics/Buttons/style1_m.png")

LoadGraphic("b_style2", "Graphics/Buttons/style2.png")
LoadGraphic("b_style2_m", "Graphics/Buttons/style2_m.png")

LoadGraphic("b_style3", "Graphics/Buttons/style3.png")
LoadGraphic("b_style3_m", "Graphics/Buttons/style3_m.png")

LoadGraphic("editor_test", "Graphics/Editor/test.png")
LoadGraphic("editor_test_m", "Graphics/Editor/test_m.png")

-- Editor
LoadGraphic("b_select", "Graphics/Editor/select.png")
LoadGraphic("b_path", "Graphics/Editor/path.png")
LoadGraphic("b_save", "Graphics/Editor/save.png")
LoadGraphic("b_room", "Graphics/Editor/room.png")
LoadGraphic("b_box", "Graphics/Editor/box.png")
LoadGraphic("b_chisel", "Graphics/Editor/chisel.png")
LoadGraphic("b_focus_point", "Graphics/Editor/focus_point.png")
LoadGraphic("b_snake_fast", "Graphics/Editor/snake_fast.png")
LoadGraphic("b_snake_full", "Graphics/Editor/snake_full.png")
LoadGraphic("b_sparse", "Graphics/Editor/sparse.png")
LoadGraphic("b_move", "Graphics/Editor/move.png")
LoadGraphic("b_delete", "Graphics/Editor/delete.png")

-- Buildings
LoadGraphic("hut", "Graphics/Game/Buildings/arcadium.png")

-- mage
LoadGraphic("mage_base", "Graphics/Game/Mage/base.png")
AnimCreate("mage_base")
	-- walking
	LoadGraphic("mage_walk_1", "Graphics/Game/Mage/Walking/1.png")
	LoadGraphic("mage_walk_2", "Graphics/Game/Mage/Walking/2.png")
	LoadGraphic("mage_walk_3", "Graphics/Game/Mage/Walking/3.png")
	AnimAdd("mage_base", "walk", "mage_walk_1")
	AnimAdd("mage_base", "walk", "mage_walk_2")
	AnimAdd("mage_base", "walk", "mage_walk_3")
	AnimChange("mage_base", "walk", "UpdateTime", 175)
	
	

-- fininally, create the minimap keys
dofile("Scripts\\MinimapKeys.lua")